#!/usr/bin/env python
# encoding:utf-8

'''
@author:jinhui
@contact:eguotangseng@163.com
@file:forms.py
@time:2018-01-04 9:51
'''

from django import forms

from .models import Topic, Entry

class TopicForm(forms.ModelForm):
    class Meta:
        model = Topic
        fields = ['text']
        labels = {'text':''}


class EntryForm(forms.ModelForm):
    class Meta:
        model = Entry
        fields = ['text']
        labels = {'text':''}
        widgets = {'text': forms.Textarea(attrs={'cols':80})}